<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // delete 关键词 => 删除对象的某个属性

    // 语法: delete 对象.属性


    var zhang = {
        name:"张三",
        age:18,
        height:"177cm",
        weight:"70kg",
    }

    console.log(zhang);

    delete zhang.height;
    delete zhang.weight;

    console.log(zhang);

</script>
</html>